{% extends "base.html" %}

{% block title %}
设置
{% endblock %}

{% block content %}
<div style="background:#fff;padding:15px;box-sizing:border-box;">
    <ul class="tabtitle">
        <li class="on">博客设置</li>
    </ul>
    <form id="formset" style="clear:both;margin:10px 0 0 10px;">
        <div class="s_e">
            <input type="hidden" name="id" value="{{base.setting.id|uw}}">
            <strong>您的昵称:</strong>
            <input type="text" class="input_narrow" name="webuser" value="{{base.setting.webuser|uw}}" maxlength="15">
        </div>
        <div class="s_e">
            <strong>登陆密码:</strong>
            <input type="password" class="input_narrow" name="webpass" placeholder="不修改请留空" maxlength="15">
        </div>
        <div class="s_e">
            <strong>博客标题:</strong>
            <input type="text" class="input_narrow" name="webtitle" value="{{base.setting.webtitle|uw}}" maxlength="30">
        </div>
        <div class="s_e">
            <strong>博客关键词:</strong>
            <input type="text" class="input_narrow" name="webkey" value="{{base.setting.webkey|uw}}" maxlength="30">
        </div>
        <div class="s_e">
            <strong>博客说明:</strong>
            <textarea name="webdesc" class="input_textarea">{{base.setting.webdesc|uw}}</textarea>
        </div>
        <div class="s_e">
            <strong>导航菜单:</strong>
            <textarea name="webmenu" class="input_textarea">{{base.setting.webmenu|uw|safe}}</textarea>
        </div>
        <div class="s_e">
            <strong>备案号:</strong>
            <input type="text" class="input_narrow" name="icp" value="{{base.setting.icp|uw}}" maxlength="30">
        </div>
        <div class="s_e">
            <strong>其它设置:</strong>
            <span>评论审核:</span> <input type="checkbox" value="1" {%if base.setting.plsh|uw==1 %}checked{%endif%}
                name="plsh">&nbsp;&nbsp;
            <span>边栏:</span> <input type="checkbox" value="1" {%if base.setting.widget|uw==1 %}checked{%endif%}
                name="widget">
        </div>
        <div class="s_s">
            <button name="save" type="button" class="btn" onclick="saveset();"> 保存 </button> <span id="errmsg"></span>
        </div>

        <div id="result" class="s_r"></div>
    </form>
</div>
{% endblock %}
